﻿@{
    ViewBag.Title = "ViewUserDetail";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}

<h2 >User's details </h2>
<div >
<table border="1px solid black">

<tr>
<td>Username :</td><td>@ViewBag.userdetail.Username</td>
</tr>

<tr>
<td>Fullname :</td><td>@ViewBag.userdetail.Fullname</td>
</tr>

<tr>
<td>Role :</td><td>@ViewBag.userdetail.RoleName</td>
</tr>

<tr>
<td>Gender :</td><td>@ViewBag.userdetail.Gender</td>
</tr>

<tr>
<td>Email :</td><td>@ViewBag.userdetail.Email</td>
</tr>

<tr>
<td>Address :</td><td>@ViewBag.userdetail.Address</td>
</tr>

<tr>
<td>Phone number :</td><td>@ViewBag.userdetail.Phone</td>
</tr>

<tr>
<td>TimeCreated :</td><td>@ViewBag.userdetail.TimeCreated</td>
</tr>
<tr>
<td>Status :</td><td>@ViewBag.userdetail.Status</td>
</tr>

</table>
@if (ViewBag.userdetail.Status == "Available")
{
    <a href = "/ManageUsers/BanUser?BanUserName=@ViewBag.userdetail.Username&BanEmail=@ViewBag.userdetail.Email" >Ban User </a>
}

</div>
